/*
 * @Author: funlee
 * @Email: i@funlee.cn
 * @Date: 2019-07-02 15:48:36
 * @Description: 研判分析
 */
import React from "react";
import { HashRouter, Route, Redirect } from "react-router-dom";
import { AsyncPage } from "@/utils/util";

const AnalysisGeneral = AsyncPage(() => import("./general"));
const AnalysisRegional = AsyncPage(() => import("./regional"));
const AnalysisWarning = AsyncPage(() => import("./warning"));
const AnalysisRanking = AsyncPage(() => import("./ranking"));

function Analysis() {
    return (
        <HashRouter>
            <Route path="/main/analysis" exact render={() => <Redirect to="/main/analysis/general" />} />
            <Route path="/main/analysis/general" component={AnalysisGeneral} />
            <Route path="/main/analysis/regional" component={AnalysisRegional} />
            <Route path="/main/analysis/warning" component={AnalysisWarning} />
            <Route path="/main/analysis/ranking" component={AnalysisRanking} />
        </HashRouter>
    );
}

export default Analysis;
